<template>
    <div> useRouter & useRoute </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { useRouter, useRoute, useLink } from 'vue-router'

export default defineComponent({
    setup(props) {
        const router = useRouter()
        const route = useRoute()
        console.log('router', router);
        console.log('route', route);

        // 没用明白？
        // const link = useLink(props)
        // console.log(link);
    },
})
</script>
